-- GENERATED SPELL FOR [Grizzle Snowpaw] --


function spell0_10199(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10199', 8252, 1)
end

function spell1_10199(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10199', 553, 1)
end

function Sorts_10199(pUnit, Event)
local choix_sorts_10199 = math.random(0, 1)
if choix_sorts_10199 == 0 then
pUnit:RegisterEvent('spell0_10199', 1, 1)
end
if choix_sorts_10199 == 1 then
pUnit:RegisterEvent('spell1_10199', 1, 1)
end
end

function mob10199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10199', math.random(1500, 3000), 1)
end

function mob10199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10199, 1, 'mob10199_Action')
RegisterUnitEvent(10199, 2, 'mob10199_Leave')
RegisterUnitEvent(10199, 3, 'mob10199_Kill')
RegisterUnitEvent(10199, 4, 'mob10199_Die')
